package com.atguigu.gmall.product.service;

import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author dyqstart
 * @create 2021-08-02-18:44
 * @since 1.0.0
 */
public interface BaseAttrInfoService extends IService<BaseAttrInfo> {

    List<BaseAttrInfo> attrInfoList(
            @Param("category1Id") Long category1Id,
            @Param("category2Id") Long category2Id,
            @Param("category3Id") Long category3Id);

    void saveAttrInfoAndValue(BaseAttrInfo baseAttrInfo);
    void updateAttrInfoAndValue(BaseAttrInfo baseAttrInfo);


    void saveOrUpdateInfoAndValue(BaseAttrInfo baseAttrInfo);
}
